import { api } from 'boot/axios'
import { CommonApiPrefix } from 'src/common/const'
export const postDepartmentAdd = (params: Api_ClueManager.ClueOrderProps):Promise<CommonType.ResDataType<any>>=>{
  return api.post(`${CommonApiPrefix}/department/add`, null, { params })
}

export const postDepartmentModify = (params: Api_ClueManager.ClueOrderProps):Promise<CommonType.ResDataType<any>>=>{
  return api.post(`${CommonApiPrefix}/department/modify`, null, { params })
}

export const getDepartmentSearch = (params:any): Promise<CommonType.ResDataType<any>> => {
  return api.get(`${CommonApiPrefix}/department/search`,  { params })
}

export const getDepartmentGet = (params:any): Promise<CommonType.ResDataType<any>> => {
  return api.get(`${CommonApiPrefix}/department/get`,  { params })
}
export const getDepartmentDel = (params:any): Promise<CommonType.ResDataType<any>> => {
  return api.get(`${CommonApiPrefix}/department/del`,  { params })
}




export const postUserAdd = (params: any):Promise<CommonType.ResDataType<any>>=>{
  return api.post(`${CommonApiPrefix}/user/add`, null, { params })
}

export const postUserModify = (params: any):Promise<CommonType.ResDataType<any>>=>{
  return api.post(`${CommonApiPrefix}/user/modify`, null, { params })
}

export const getUserSearch = (params:any): Promise<CommonType.ResDataType<any>> => {
  return api.get(`${CommonApiPrefix}/user/search`,  { params })
}

export const getUserGet = (params:any): Promise<CommonType.ResDataType<any>> => {
  return api.get(`${CommonApiPrefix}/user/get`,  { params })
}
export const getUserDel = (params:any): Promise<CommonType.ResDataType<any>> => {
  return api.get(`${CommonApiPrefix}/user/del`,  { params })
}
// 修改密码
export const postResetPW = (params: any):Promise<CommonType.ResDataType<any>>=>{
  return api.post(`${CommonApiPrefix}/user/resetpw`, null, { params })
}